package com.ljs.myspringboot.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class Goods {
    private int gid;
    private String gname;
    private List<Customer> customerList;

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", customerList=" + customerList +
                '}';
    }

    public Goods(String gname) {
        this.gname = gname;
    }

    public Goods(int gid, String gname) {
        this.gid = gid;
        this.gname = gname;
    }
}
